#include "namePipe.hpp"

int main()
{
    namePipe fifo(comm_path, Creater);
    std::cout << "Create server fifo"<<std::endl;
    if (fifo.OpenForRead())
    {
        while (true)
        {
            std::string message;
            int n = fifo.ReadNamePipe(&message);
            if (n > 0)
            {
                std::cout << "Client say: " << message << std::endl;
            }
        }
    }
    return 0;
}